package Visitor;

public class Saler extends AVisitor{
    @Override
    public void visit(Apple apple) {
        System.out.println("收银员"+ name +"给" +"给苹果过称然后计算其价格。");
    }

    @Override
    public void visit(Book book) {
        System.out.println("收银员"+ name +"直接计算书的价格。");
    }
}
